is test-assertion
ErrorsCollection

is test-assertion

Synthesised documentation from type/Routine

From type/Routine

See Original text in context

multi sub trait_mod:<is>(Routine:D:$test-assertion!)

Declares that a routine generates test output (aka TAP). When failures are reported, the calling routine's location is used instead of this routine. For example:

use Test;
sub foo-test($valueis test-assertion {
    is $value42"is the value 42?";
}
foo-test(666);    # <-- error is reported on this line